import {defineStore} from 'pinia'

export const amddStore = defineStore('amdd',{
    state:()=>{
        return{
            stations:[],// 站点信息
        }
    },
    actions:{
        // 存入站点信息
        setStations(stations){
            this.stations = stations
        },
        // 清空站点信息
        clearStations(){
            this.stations = []
        },
    },
    persist:{
        enabled:true
    },
    getters:{
        // 获取站点信息
        getStations(){
            return this.stations
        }, 
    }
})